package MainPanels;

import java.awt.*;
import javax.swing.*;

/*
 * This panel appears on the left side of the 'MainForm' and contains the 9 small 'SelectNewObjectPanel's
 * (every one of those 9 panels contains a button representing the object the user wants to add to the
 * database)
 */

public class ObjectToAddPanel extends JPanel {

	public ObjectToAddPanel()
	{
		this.setBackground(Color.LIGHT_GRAY);
		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		this.setVisible(false);
		
		addNewObjectSelectPanels();
	}
	
	private void addNewObjectSelectPanels()
	{
		this.add(Box.createHorizontalGlue());
		this.add(Box.createVerticalStrut(50));
		this.add(new SelectNewObjectPanel("Airport"));
		this.add(Box.createVerticalStrut(10));
		this.add(new SelectNewObjectPanel("Company"));
		this.add(Box.createVerticalStrut(10));
		this.add(new SelectNewObjectPanel("Airplane"));
		this.add(Box.createVerticalStrut(10));
		this.add(new SelectNewObjectPanel("Flight"));
		this.add(Box.createVerticalStrut(10));
		this.add(new SelectNewObjectPanel("Trip"));
		this.add(Box.createVerticalStrut(10));
		this.add(new SelectNewObjectPanel("Passenger"));
		this.add(Box.createVerticalStrut(10));
		this.add(new SelectNewObjectPanel("Class"));
		this.add(Box.createVerticalStrut(10));
		this.add(new SelectNewObjectPanel("Menue"));
		this.add(Box.createVerticalStrut(10));
		this.add(new SelectNewObjectPanel("Seat"));
		this.add(Box.createVerticalGlue());
	}
	
}
